#include <iostream>
#include <vector>
#include <string>

#include "libraryEngine.h"
#include "filterEngine.h"

int main(int argc, char** argv)
{
	std::vector<LIB::songData> LIBRARY;
	FE::filter FILTER;
	FE::playlist PLAYLIST;

	LIB::load(LIBRARY);
	FE::generateFilter("+(.*)", FILTER);
	FE::applyFilter(LIBRARY, FILTER, PLAYLIST);
	
	std::vector<LIB::songData*>::iterator it;
	for (it = PLAYLIST.songs.begin(); it != PLAYLIST.songs.end(); it++) {
		std::cout << "[" << (*it)->name << "]\n";
	};

	LIB::save(LIBRARY);

	std::cin.get();
	return 0;
};